Skip to content

Conversation

@harrryr
Copy link
Contributor

@harrryr harrryr commented Sep 23, 2024

Issue description:
In order to meet our requirement of ADOT java supporting all java versions 8+, we are planning on testing ADOT Java on the currently available Java versions before release. The test coverage will include Java 8, 11, 17, 21, 22. This PR will aim to build the Java sample apps on different language versions, and once we validate that the new .jar/images are available, we will merge another PR to make the canaries use the new changes

Description of changes:
Build Sample App For Java 8
Our current sample app is built on Java 11, however, some of the libraries that are used to make http calls are not available in Java 8. Built another sample app for Java 8 that uses older libraries.

Upgrade Gradle to 8.10
We use Gradle 8.5 to built our sample app, which doesn't support Java 21+. Upgrading gradle to the latest version 8.10.

Add plugin to use Kotlin 2.0
Gradle 8.10 uses Kotlin 1.x.x, however, Java 22 is supported by Kotlin 2.0. Added plugin in gradle.setting.ts to use the latest Kotlin version.

Refactor java sample app workflows
Updated the workflow files to use the latest secrets for AWS credentials and ECR ARN

Add jobs to build other language versions
Currently, we build Java 11 sample app and deploy to all regions. The other language versions are only required in us-east-1 since it will be used by main-build.yml in ADOT Java repo. Therefore, we made two new jobs in the workflow files to build and deploy new sample apps to us-east-1 only.

Rollback procedure:
Doesn't affect existing image which uses :latest tag. This PR should not affect any existing workflows.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@harrryr harrryr force-pushed the java-sample-app-version branch from 84ee952 to 20b0bf6 Compare September 23, 2024 22:20
@harrryr harrryr force-pushed the java-sample-app-version branch from 6e21b2d to 96dabc8 Compare September 23, 2024 22:27
@harrryr harrryr force-pushed the java-sample-app-version branch from 31ad72f to 93179a1 Compare September 23, 2024 23:36
Copy link
Contributor

@majanjua-amzn majanjua-amzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use Java 11 which does not work with Java 8. Could we update our sample app to just the Java 8 one and build it in all future version if they're all backwards compatible instead of maintaining multiple versions?

@harrryr harrryr force-pushed the java-sample-app-version branch from 8161346 to 416fec6 Compare September 25, 2024 23:20
@harrryr harrryr force-pushed the java-sample-app-version branch from 9e679bb to 971fed6 Compare September 26, 2024 17:44
@harrryr harrryr merged commit d50fe77 into aws-observability:main Sep 26, 2024
1 check passed
harrryr added a commit that referenced this pull request Sep 27, 2024
*Issue description:*
Follow up on
#247
Add input option for Java EC2 to choose language version

*Rollback procedure:*
Revert

*Test Run*

https://github.com/harrryr/aws-application-signals-test-framework/actions/runs/11043127523

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants